/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.ctrlview.bidim;

/**
 *
 * @author Mr.Sam
 */
import java.awt.*;
import fr.ove.openmath.jome.ctrlview.bidim.Display;
import fr.ove.openmath.jome.ctrlview.bidim.DisplayLayout;
import fr.ove.openmath.jome.ctrlview.bidim.HorizontalLayout;
import fr.ove.openmath.jome.ctrlview.bidim.selection.events.SelectionEvent;
import fr.ove.openmath.jome.model.*;

/**
* A layout manager that lays components to place them as the different elements of a
* product.<BR>
* The different elements are contained in the display in the following order :
* <UL>
* <LI>the symbol product.</LI>
* <LI>the expression.</LI>
* <LI>the lower bound.</LI>
* <LI>the upper bound.</LI>
*</UL>
*
* Bounds are optional elements.
*
* @author © 2000 DIRAT Laurent
* @version 2.0 21/02/2000
*/
public class ProductLayout extends MapsToSigmaLayout {
    /**
    * Returns the display of the operator
    */
    public Display createOperatorDisplay() {
        SymbolDisplay product = new SymbolDisplay(displayToLay.getGraphicContext(), 
                                                new ImageSymbol("Product", displayToLay));
        // Le display de la somme est le display d'un opérateur (on peut le considérer comme tel)
        product.setIsSymbolOperatorDisplay(true);
        
        return product;
    }
}
